package com.xy.biz.ts.domain.bo;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 *
 *
 * @author wwj
 * @date 2021-4-2
 */
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Data
public class TrainDocumentRelBO {

    public TrainDocumentRelBO(TrainDocumentRelBO trainDocumentRelBO) {
        this.trainId = trainDocumentRelBO.getTrainId();
        this.documentId = trainDocumentRelBO.getDocumentId();
        this.tenantId = trainDocumentRelBO.getTenantId();
        this.documentName = trainDocumentRelBO.getDocumentName();
        this.learnDurationString = trainDocumentRelBO.getLearnDurationString();
        this.learnDuration = trainDocumentRelBO.getLearnDuration();
        this.isLearning = trainDocumentRelBO.getIsLearning();
        this.deleteFlag = trainDocumentRelBO.getDeleteFlag();
        this.releaseFlag = trainDocumentRelBO.getReleaseFlag();
    }

    /**
     * 培训Id
     */
    private Long trainId;
    /**
     * 文档Id
     */
    private Long documentId;
    /**
     * 租户Id，0表示不指定
     */
    private Long tenantId;

    private String documentName;
    /**
     * 学习时长
     */
    private String learnDurationString;
    /**
     * 学习时长
     */
    private Long learnDuration;
    /**
     * 是否自学
     */
    private Boolean isLearning;
    /**
     * 删除标识：0-正常，1-删除
     */
    private Boolean deleteFlag;
    /**
     * 发行标识：0-未发行，1-发行
     */
    private Boolean releaseFlag;
}
